package com.guigu.wenzhiyi.service.impl;

import com.guigu.wenzhiyi.mapper.MprocedureMapper;
import com.guigu.wenzhiyi.pojo.Mprocedure;
import com.guigu.wenzhiyi.service.MprocedureService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MprocedureServiceImpl implements MprocedureService {

    @Autowired
    MprocedureMapper mprocedureMapper;

    @Override
    public int insert(Mprocedure mprocedure) {
        mprocedureMapper.insert(mprocedure);
        return mprocedure.getId();
    }

    @Override
    public int updateWXY(Mprocedure mprocedure) {
        return mprocedureMapper.update(mprocedure);
    }

    @Override
    public int updateJJ(Mprocedure mprocedure) {
        return mprocedureMapper.updateJJ(mprocedure);
    }

    @Override
    public List<Mprocedure> mManufactureWZY_SH_list(Integer id) {
        return mprocedureMapper.mManufactureWZY_SH_list(id);
    }

    @Override
    public List<Mprocedure> Mmanufacture_WZY_DengJi_SH_list(Integer id) {
        return mprocedureMapper.Mmanufacture_WZY_DengJi_SH_list(id);
    }

    @Override
    public List<Mprocedure> Mmanufacture_WZY_DengJi_SH_list_WanCheng(Integer id) {
        return mprocedureMapper.Mmanufacture_WZY_DengJi_SH_list_WanCheng(id);
    }

}
